home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13582 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: roytoo@aol.com (Roytoo)
  3. Newsgroups: comp.lang.c++
  4. Subject: Problem with Borland C++ v4.52
  5. Date: 26 Mar 1996 11:47:57 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4j973t$ctm@newsbf02.news.aol.com>
  9. Reply-To: roytoo@aol.com (Roytoo)
  10. NNTP-Posting-Host: newsbf02.mail.aol.com
  11.  
  12. I am having a runtime problem with Borland C++ v4.52.  When I try to input
  13. a real number (i.e. 12.5) using cin >> to a variable defined as a double,
  14. float or long double, I get a "floating point: overflow" error.  This
  15. problem disappears if I input numbers in the format:  1.25e1.  However, if
  16. i use the format:  12.5e0, the runtime error occurs again.
  17.  
  18.   I have checked all the options I could find that would affect floating
  19. point operation, and they all seem to be turned on.
  20.  
  21.   Any help would be appreciated.
  22.  
  23.   Thanks,
  24.   Roy Adams Jr.
  25.  
  26.  
  27.  Please respond either here, or to me by e-mail:  roytoo@aol.com
  28.  
  29.  
  30. //  Friends don't let friends forget to breathe.  \\
  31. \\                           Be a friend.                            //
  32.